Sometimes Skeletons gets stuck inside of walls,Are you aware of this problem?.
They just pretend to be ghosts, it's probably a feature!