fixing some undefined errors
Merge pull request #41 from fatihky/custom

fixing some undefined errors