Fixed Custom Price bug and syntax warnings