Fix for weird bug on specific php/apache setups