Fixed deprecated functions

Fixed has caps error
Fixed supporess error