Fixes broken if statement.