Fixed small problem with a boolean