Fixed the ffff bug, thanks Arceliar and tg for debugging and fixing it.