fix php issues