Fixed PHP < 5.3 view creating and copying