Fixed problem with compiler and weight