Fixed setting location bug by fixing the defines