Fixed small phase change bug