attempts to fix response for php 5.4