Fixed a tiny bug with calling the method