Fixed all the mistakes in rendering