fixed obvious bug