fixed empty if statement error