Fixed the php boolean bug