Wrong value is being used and also top property is missing