Fixed Custom Price bug and syntax warnings

Seems to fix it nicely :)