Fixed silly noob programming errors