Fix wrong moduel check