Fix views PHP bug