Fix wrong usage of method