fix for php version 5.4