Script corrections