Fixed some bugs in IFT615-TP3