Fixing build error
Moving a endif to close the first ifdef at the end of the file