A solution to the optimal ghost