Fixed double "if statement" - thx XhmikosR :)