Fixed the ghost problems