Fixed weird PHP issue with intermediary variable