Fix wrong functions usage