Fixed Dashboard if statement error