Fixed fatal error in php 5.3