Fixed bug in scarlet