fix to php missing boundary bug