Fix error when running PHP version 5.2