Fix position relative/absolute bug